const Koa = require('koa');
const { koaBody } = require('koa-body');
const router = require('koa-Router')();
const cors = require('koa-cors');
const Mock = require('mockjs')
const app = new Koa()

app.use(cors())
app.use(koaBody())
app.use(router)
router.get('/Byqx',(ctx) => {
    
})

// response
app.use(ctx => {
  ctx.body = 'Hello Koa';
});

app.listen(3000,() => {
    console.log('启动成功');
    
});